package edu.upol.paradise.compiler;

import edu.upol.paradise.compiler.types.AnnotatedCons;

public class CompilerError extends Exception {
	private static final long serialVersionUID = 5400901574207547846L;
	
	public static final String ERROR_NOT_A_LIST 		 = "S-Expression is not a list but pair!";
	public static final String ERROR_FIRST_ELEMENT_WRONG = "First element in S-Expression must be a symbol!";
	
	public CompilerError(String message, AnnotatedCons pair) {
		super(message + " at line " + pair.getLineNo() + ", " + pair.getCharNo());
	}

	public CompilerError(String str) {
		super(str);
	}
}
